<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
  </head>
  
 <body>
<div id="allbody">
	<div class="head">
		<iframe src="<%=basePath%>/head.jsp" width="1160" height="182" scrolling="no" frameborder="0" ></iframe>
	</div>
	<div class="con">
		<div class="left">
			<div class="left_info">
				<iframe src="<%=basePath%>/left_info.jsp" width="244" height="250" id="iframeleft_top"  onLoad="iFrameHeight()"  scrolling="no" frameborder="0" ></iframe>
			</div>
			<div class="left_link">
				<iframe src="<%=basePath%>/fjpd_left.jsp" width="244" height="200" id="iframeleft_link"  onLoad="iFrameHeight2()" scrolling="no" frameborder="0" ></iframe>
			</div>
		</div>
		<s:set name="corpGrade" value="#session.corpuser.corpGrade"></s:set>
		<s:set name="fpDate" value="#session.corpuser.fjpdFpDate"></s:set>
		<div class="right">
			<div class="right_map"><a href="<%=basePath%>/corp/index.action">首页</a> &gt; <span><a href="<%=basePath%>/fjpd/_index.action">分级评定</a></span> </div>
			<div class="right_list">
				<table width="90%" align="center" border="0">
					<tr>
						<td colspan="2"></td>
					</tr>
					<tr>
						<td colspan="2">
							<s:if test="%{apply==null}"><font color="red">提示：您还未进行分级评定，请点击分级评定进行自评！</font><br><br></s:if>
							<s:elseif test="%{apply.applyStatus==7 || apply.applyStatus==10}">
								<s:if test="%{review}">
									<font color="red">您所在企业分级评定复评时间已到，复评时间为：<s:date name="#session.corpuser.djpdFpDate" format="yyyy年MM月dd日"/>；请点分级评定进行评级。</font><br><br>
								</s:if>
								<s:else>
									您当前的级别为<font color="red"><s:property value="#corpGrade"/></font>级；下次复评时间为：<s:date name="#session.corpuser.djpdFpDate" format="yyyy年MM月dd日"/>；
									点击“历史评级”查看评级记录。
								</s:else>
							</s:elseif>
							<s:elseif test="%{apply.applyStatus<4}">
								<font color="red">您的分级评定自评还未完成，继续完成分级评定；绿色为已执行步骤，红色为当前执行步骤，灰色为为执行步骤。</font><br><br>
								步骤： <br/><br/>
								<div class="bz">
									<li class="${apply.applyStatus==0?'red':'grn'}">自查评分</li>
									<li class="jt">&rarr;</li>
									<s:if test="%{apply.applyStatus==1}"><li class="red"><a href="<%=basePath%>/fjpd/_fjpdWs1.action?objId=${apply.id }">填写申请表</a></li><li class="jt">&rarr;</li><li class="gry">自评报告</li><li class="jt">&rarr;</li><s:if test="%{citySupervision}"><li class="gry">提交市行业部门</li></s:if><s:else><li class="gry">提交县(市、区)、开发区行业部门</li></s:else></s:if>
									<s:elseif test="%{apply.applyStatus==2}"><li class="grn"><a href="<%=basePath%>/fjpd/_fjpdWs1.action?objId=${apply.id }">填写申请表</a></li><li class="jt">&rarr;</li><li class="red"><a href="<%=basePath%>/fjpd/_fjpdWs2.action?objId=${apply.id }">自评报告</a></li><li class="jt">&rarr;</li>
										<s:if test="%{citySupervision}"><li class="gry">提交市行业部门</li></s:if><s:else><li class="gry">提交县(市、区)、开发区行业部门</li></s:else>
									</s:elseif>
									<s:elseif test="%{apply.applyStatus==3}"><li class="grn"><a href="<%=basePath%>/fjpd/_fjpdWs1.action?objId=${apply.id }">填写申请表</a></li><li class="jt">&rarr;</li><li class="grn"><a href="<%=basePath%>/fjpd/_fjpdWs2.action?objId=${apply.id }">自评报告</a></li><li class="jt">&rarr;</li><li class="red">
									<a href="<%=basePath%>/fjpd/_fjpdSuccess.action?objId=${apply.id }"><s:if test="%{citySupervision}">提交市行业部门</s:if><s:else><li class="gry">提交县(市、区)、开发区行业部门</li></s:else></a>
									</s:elseif>
									<s:elseif test="%{apply.applyStatus>3}"><li class="grn"><a href="<%=basePath%>/fjpd/_fjpdWs1.action?objId=${apply.id }">填写申请表</a></li><li class="jt">&rarr;</li><li class="grn"><a href="<%=basePath%>/fjpd/_fjpdWs2.action?objId=${apply.id }">自评报告</a></li><li class="jt">&rarr;</li><s:if test="%{citySupervision}"><li class="gry">提交市行业部门</li></s:if><s:else><li class="gry">提交县(市、区)、开发区行业部门</li></s:else></s:elseif>
								</div>
									 <br><br>
									 <table border="0" cellpadding="0" cellspacing="0" align="center" class="infolist" style="width: 800px;" id="mytable">
										<tr class="cz">
											<th width="15%">评级时间</th>
					     					<th width="15%">总分</th>
					     					<th width="15%">级别</th>
					     					<th width="10%">合格项</th>
					     					<th width="10%">不合格项</th>
					     					<th width="10%">不涉及项</th>
											<th width="15%" style="border-right:none">状态</th>
											<th width="10%" style="border-right:none">操作</th>
										</tr>
										<tr class="cz">
											<td><s:date name="%{apply.zpDate}" format="yyyy-MM-dd"/> </td>
											<td>${apply.zpScore }</td>
											<td>${apply.zpGrade }</td>
											<td>${apply.zpHgNum }</td>
											<td>${apply.zpBhgNum }</td>
											<td>${apply.zpBsjNum }</td>
											<td>
												<s:if test="%{apply.applyStatus==1}">填写申请表</s:if>
												<s:elseif test="%{apply.applyStatus==2}">填写自评报告</s:elseif>
												<s:elseif test="%{apply.applyStatus==3}">提交县行业部门</s:elseif>
												<s:elseif test="%{apply.applyStatus==4}">县行业部门初审</s:elseif>
												<s:elseif test="%{apply.applyStatus==5}">县行业部门打回</s:elseif>
												<s:elseif test="%{apply.applyStatus==6}">待市行业确认</s:elseif>
												<s:elseif test="%{apply.applyStatus==7}">行业确认通过</s:elseif>
												<s:elseif test="%{apply.applyStatus==8}">移交市行业</s:elseif>
												<s:elseif test="%{apply.applyStatus==9}">市行业打回</s:elseif>
												<s:elseif test="%{apply.applyStatus==10}">市行业确认通过</s:elseif>
												<s:elseif test="%{apply.applyStatus==20}">提交市行业部门</s:elseif>
											</td>
											<td><a href="<%=basePath%>/fjpd/_fjpdShow.action?objId=${apply.id }">查看</a></td>
										</tr>
										</table>
							</s:elseif>
							<s:elseif test="%{apply.applyStatus==5}">
								<font color="red">您的分级评定自评被县(市、区)、开发区行业打回，请点击分级评定修改自评打分并重新上报。</font><br><br>
								打回人：${apply.sdBackUser }<br>打回理由：${apply.sdBack }<br>打回时间：<s:date name="apply.sdBackDate" format="yyyy-MM-dd"/><br><br>
							</s:elseif>
							<s:else>
								<font color="red">您已经完成本次自评打分，下边为自评打分情况。</font><br><br>
								<table border="0" cellpadding="0" cellspacing="0" align="center" class="infolist" style="width: 800px;" id="mytable">
								<tr class="cz">
									<th width="15%">评级时间</th>
			     					<th width="15%">总分</th>
			     					<th width="15%">级别</th>
			     					<th width="10%">合格项</th>
			     					<th width="10%">不合格项</th>
			     					<th width="10%">不涉及项</th>
									<th width="15%">状态</th>
									<th width="10%" style="border-right:none">查看</th>
								</tr>
								<tr class="cz">
									<td><s:date name="%{apply.zpDate}" format="yyyy-MM-dd"/> </td>
									<td>${apply.zpScore }</td>
									<td>${apply.zpGrade }</td>
									<td>${apply.zpHgNum }</td>
									<td>${apply.zpBhgNum }</td>
									<td>${apply.zpBsjNum }</td>
									<td>
										<s:if test="%{apply.applyStatus==1}">填写申请表</s:if>
										<s:elseif test="%{apply.applyStatus==2}">填写自评报告</s:elseif>
										<s:elseif test="%{apply.applyStatus==3}">提交县(市、区)、开发区行业部门</s:elseif>
										<s:elseif test="%{apply.applyStatus==4}">县(市、区)、开发区行业部门初审</s:elseif>
										<s:elseif test="%{apply.applyStatus==5}">县(市、区)、开发区行业部门打回</s:elseif>
										<s:elseif test="%{apply.applyStatus==6}">待市行业确认</s:elseif>
										<s:elseif test="%{apply.applyStatus==7}">行业确认通过</s:elseif>
										<s:elseif test="%{apply.applyStatus==8}">移交安办</s:elseif>
										<s:elseif test="%{apply.applyStatus==9}">安办打回</s:elseif>
										<s:elseif test="%{apply.applyStatus==10}">安办确认通过</s:elseif>
									</td>
									<td><a href="<%=basePath%>/fjpd/_fjpdShow.action?objId=${apply.id }">查看</a></td>
								</tr>
								</table>
							</s:else>
						</td>
					</tr>
					<tr>
						<td colspan="2" height="60px"></td>
					</tr>
					<tr>
						<td><a href="<%=basePath%>/fjpd/_fjpdEdit.action"><img src="<%=basePath%>/images/fjpd.gif"/></a></td>
						<td><a href="<%=basePath%>/fjpd/_fjpdHis.action"><img src="<%=basePath%>/images/lspjl.gif"/></a></td>
					</tr>	
				</table>
			</div>
		</div>
	</div>
	<div class="foot">
		<iframe src="<%=basePath%>/foot.html" width="1160" height="89" scrolling="no" frameborder="0" ></iframe>
	</div>
</div>
<s:if test="%{tip!=null}">
	<script>
		alert('${tip}');
	</script>
</s:if>
</body>
</html>
